home *** CD-ROM | disk | FTP | other *** search
/ GEGA 010 / GEGA010.iso / Mods / Doom 3 / BloodyScreme / bloodymess.pk4 / def / weapon_machinegun.def < prev    next >
Text File  |  2004-08-06  |  8KB  |  236 lines

  1. /***********************************************************************
  2.  
  3.     weapon_machinegun.def
  4.  
  5. ***********************************************************************/
  6.  
  7. export fred {
  8.     // view model machinegun
  9.     options -prefix MGUN_ -keep barrel eject guilight flash -parent barrel Ext -parent eject Ext -parent guilight Bod -parent flash Bod -rename origin blah -sourcedir models/weapons/machinegun/cycles -destdir models/md5/weapons/machinegun_view
  10.  
  11.     mesh    idle1.ma -dest viewmachinegun
  12.     anim    idle1.ma -range 1 45 -dest idle
  13.     anim    fire1.ma -range 1 4 -dest fire1
  14.     anim    fire2.ma -range 1 4 -dest fire2
  15.     anim    fire4.ma -range 1 4 -dest fire4
  16.     anim    putaway.ma -dest putaway
  17.     anim    pullup1.ma -dest pullup
  18.     anim    reload1.ma -range 1 60 -dest reload
  19.     anim    empty.ma -dest empty
  20.  
  21.     // world model machinegun
  22.     options -ignorescale -prefix PLAYER_MG -keep ATTACHER barrel guilight eject flash -parent guilight Body -parent flash Body -parent eject Body -rename MGbarrel barrel -rename ATTACHER origin -clearorigin
  23.     addoptions -skipmesh PLAYER_mgdisplaymesh        
  24.     addoptions -skipmesh PLAYER_mgextendermesh
  25.     addoptions -skipmesh PLAYER_mgbodymesh
  26.     addoptions -skipmesh PLAYER_mgclipmesh
  27.     addoptions -skipmesh PLAYER_mgtriggermesh
  28.  
  29.     mesh    models/characters/player/mocap/machinegun_idle.mb -dest models/md5/weapons/machinegun_world/worldmachinegun
  30.     anim    models/characters/player/mocap/machinegun_idle.mb -dest models/md5/weapons/machinegun_world/machinegun_idle
  31.     anim    models/characters/player/mocap/machinegun_reload.mb -dest models/md5/weapons/machinegun_world/machinegun_reload
  32. }
  33.  
  34. entityDef weapon_machinegun {
  35.     "editor_color"                ".3 .3 1"
  36.     "editor_mins"                "-16 -16 0"
  37.     "editor_maxs"                "16 16 32"
  38.     "editor_usage"                "Machinegun"
  39.     "editor_rotatable"            "1"
  40.  
  41.     "spawnclass"                "idItem"
  42.     "size"                        "32 32 32"
  43.     "model"                        "models/weapons/machinegun/w_machinegun.lwo"
  44.     "model_view"                 "viewmodel_machinegun"
  45.     "model_world"                 "worldmodel_machinegun"
  46.     "joint_attach"                "MGATTACHER"
  47.     "def_dropItem"                "moveable_item_machinegun"
  48.  
  49.     "weaponAngleOffsetAverages" "10"
  50.     "weaponAngleOffsetScale"     ".25"
  51.     "weaponAngleOffsetMax"        "15"
  52.     "weaponOffsetTime"            "400"
  53.     "weaponOffsetScale"            "0.005"
  54.  
  55.  
  56.     "inv_name"                    "Machinegun"
  57.     "inv_weapon"                "weapon_machinegun"
  58.     "inv_ammo_clip"                "60"
  59.     "inv_item"                    "5"
  60.  
  61.     "weapon_scriptobject"        "weapon_machinegun"
  62.     "def_projectile"            "projectile_bullet_machinegun"
  63.     "ammoType"                    "ammo_clip"
  64.     "ammoRequired"                "1"
  65.     "clipSize"                    "60"
  66.     "lowAmmo"                    "10"
  67.     "mtr_flashShader"            "muzzleflash"
  68.     "flashColor"                "1 0.8 0.4"
  69.     "flashRadius"                "360"
  70.     "silent_fire"                "0"
  71.     
  72.     "gui"                        "guis/weapons/machinegun.gui"
  73.     "mtr_guiLightShader"        "lights/viewWeaponGuiLight"
  74.     
  75.     "icon"                        "guis/assets/hud/wpn_3"
  76.     "muzzle_kick_time"            "0.2"
  77.     "muzzle_kick_maxtime"        "0.6"
  78.     "muzzle_kick_angles"        "0 0 0"
  79.     "muzzle_kick_offset"        "1 1 2"
  80.     "recoilTime"                "145"
  81.     "recoilAngles"                "-1 0 0"
  82.  
  83.     "hide_time"                    "0.3"                                // time to hide weapon when talking to npcs or looking at guis
  84.     "hide_distance"                "-15"                                // distance to offset weapon when talking to npcs or looking at guis
  85.  
  86.     "smoke_muzzle"                "mgmuzzlesmoke.prt"
  87.     "def_ejectBrass"            "debris_brass"
  88.     "ejectBrassDelay"            "10"
  89.  
  90.     "snd_acquire"                "sound_weapon_acquire"
  91.     "snd_respawn"                "sound_weapon_respawn"
  92.     "snd_lowammo"                 "player_machinegun_lowammo"
  93.     "snd_glass"                    "bullet_impact_glass"
  94.     "skin_invisible"            "skins/machinegun_invis"
  95.     
  96.     "spread"                    "1"
  97. }
  98.  
  99. entityDef moveable_item_machinegun {
  100.     "inherit"                    "weapon_machinegun"
  101.     "spawnclass"                "idMoveableItem"
  102.     "density"                    "0.05"
  103.     "friction"                    "0.2"
  104.     "bouncyness"                "0"
  105. }
  106.  
  107. model worldmodel_machinegun {
  108.     mesh                         models/md5/weapons/machinegun_world/worldmachinegun.md5mesh
  109.  
  110.     anim raise                    models/md5/weapons/machinegun_world/machinegun_idle.md5anim    
  111.     anim idle                     models/md5/weapons/machinegun_world/machinegun_idle.md5anim
  112.     anim aim                    models/md5/weapons/machinegun_world/machinegun_idle.md5anim
  113.     anim fire1                     models/md5/weapons/machinegun_world/machinegun_idle.md5anim
  114.     anim reload                    models/md5/weapons/machinegun_world/machinegun_reload.md5anim
  115.     anim noammo                    models/md5/weapons/machinegun_world/machinegun_idle.md5anim
  116.     anim putaway                models/md5/weapons/machinegun_world/machinegun_idle.md5anim
  117. }
  118.  
  119. model viewmodel_machinegun {
  120.     mesh                     models/md5/weapons/machinegun_view/viewmachinegun.md5mesh
  121.     anim raise                models/md5/weapons/machinegun_view/pullup.md5anim {
  122.         frame 1                sound_body player_machinegun_raise
  123.     }
  124.     anim idle                 models/md5/weapons/machinegun_view/idle.md5anim
  125.     anim fire1                models/md5/weapons/machinegun_view/fire4.md5anim {
  126.         frame 1                sound_voice player_machinegun_fire
  127.         frame 1                sound_voice2  player_machinegun_mech
  128.     }
  129.     anim reload                models/md5/weapons/machinegun_view/reload.md5anim {
  130.         frame 1                sound_item player_machinegun_reload
  131.     }
  132.     anim noammo                models/md5/weapons/machinegun_view/empty.md5anim {
  133.         frame 1                sound_voice player_machinegun_empty    
  134.     }
  135.     anim putaway            models/md5/weapons/machinegun_view/putaway.md5anim
  136. }
  137.  
  138. entityDef damage_bullet_machinegun {
  139.     "damage"            "9"
  140.     "kickDir"            "1 0 0"
  141.  
  142.     "mtr_blob"            "genericDamage"
  143.     "blob_time"            "300"
  144.     "blob_size"            "400"
  145.     "blob_offset_x"        "400"
  146.  
  147.     "knockback"            "2"
  148.     
  149.     "mtr_wound_flesh"    "textures/decals/hurt02"
  150.     "mtr_wound_metal"    "textures/decals/hurtmetal"
  151.     "mtr_wound_ricochet"    "textures/decals/hurtmetal"
  152.     "mtr_splat_flesh"    "textures/decals/dsplat2"
  153.     "mtr_splat_flesh2"    "textures/decals/dsplat5"
  154.     "mtr_splat_flesh3"    "textures/decals/dsplat7"
  155.     "mtr_splat_flesh4"    "textures/decals/dsplat11"
  156.     
  157.     "kick_time"            "400"
  158.     "kick_amplitude"    "1"
  159.  
  160.     "dv_time"            "100"
  161.  
  162.     "gib"                "0"
  163.     "smoke_wound_flesh"    "burstysquirt.prt"
  164.     
  165. }
  166.  
  167. entityDef projectile_bullet_machinegun {
  168.     "spawnclass"                "idProjectile"
  169.     "mins"                        "-1 -1 -1"
  170.     "maxs"                        "1 1 1"
  171.     "cone"                        "3"
  172. //    "model"                     "models/items/projectiles/rocket.ase"
  173.     "scale"                        "0.1"
  174.     "noshadows"                    "1"
  175.  
  176.     "model_tracer"                "models/particles/tracer/tracer.lwo"
  177.  
  178.     "def_damage"                "damage_bullet_machinegun"
  179.  
  180.     "launchFromBarrel"            "0"
  181.     "health"                    "0"
  182.     "velocity"                    "7200 0 0"    // .38 Special 600 fps.  Source: Petzal, David E. "How fast is a speeding bullet." Field and Stream. 97 (1992): 23
  183.     "angular_velocity"            "0 0 0"
  184.     "thrust"                    "0"
  185.     "thrust_start"                "0"
  186.     "thrust_end"                "0"
  187.     "linear_friction"            "0"
  188.     "angular_friction"            "0"
  189.     "contact_friction"            "0"
  190.     "bounce"                    "0.6"
  191.     "mass"                        "1"
  192.     "gravity"                    "0"
  193.     "fuse"                        "4"
  194.  
  195.     "detonate_on_fuse"            "0"
  196.     "detonate_on_death"            "0"
  197.     "detonate_on_world"            "1"
  198.     "detonate_on_actor"            "1"
  199.  
  200.     "impact_damage_effect"        "1"
  201.     "impact_gib"                "1"
  202.  
  203.     "mtr_detonate"                "textures/decals/bulleth02"
  204.     "mtr_detonate_glass"        "textures/decals/testbulletglass1"
  205.     "decal_size"                "10"
  206.     "model_smokespark"            "bulletsmokeandspark.prt"
  207.     "model_ricochet"            "bulletricochet.prt"
  208.  
  209.     "smoke_fly"                    ""
  210.     "smoke_detonate"            "smokeandspark.smoke"
  211.     "smoke_bounce"                ""    //particles/bullet_sparks.particle"
  212.     "smoke_fuse"                ""
  213.                                 
  214.     "mtr_light_shader"            ""
  215.     "light_color"                "0 0 0"
  216.     "light_radius"                "0"
  217.     "light_offset"                "0 0 0"
  218.  
  219.     "mtr_explode_light_shader"    ""
  220.     "explode_light_color"        "0 0 0"
  221.     "explode_light_radius"        "0"
  222.     "explode_light_fadetime"    "0"
  223.     
  224.     "snd_tracer"                "bullet_flight"
  225.     "snd_ricochet"                "bullet_ricochet"
  226.     "snd_flesh"                    "bullet_impact_flesh"
  227.     "snd_metal"                    "bullet_impact_metal"
  228.     "snd_stone"                    "bullet_impact_stone"
  229.     "snd_wood"                    "bullet_impact_wood"
  230.     "snd_cardboard"                "bullet_impact_cardboard"
  231.     "snd_glass"                    "bullet_impact_glass"
  232.     "snd_liquid"                "bullet_impact_liquid"
  233.     "snd_plastic"                "small_plastic"
  234.     //"snd_impact"                "bullet_impact_metal"
  235. }
  236.